package com.xbjtech.shiro;

import org.apache.shiro.authc.AuthenticationToken;

import lombok.Getter;
import lombok.Setter;

public class MobileYzmToken implements AuthenticationToken {

	private static final long serialVersionUID = 3791629222460232238L;

	@Getter
	@Setter
	private String mobile;
	
	@Getter
	@Setter
	private String yzm;
	
	public MobileYzmToken() {}
	
	public MobileYzmToken(String mobile, String yzm) {
		this.mobile = mobile;
		this.yzm = yzm;
	}
	
	
	@Override
	public Object getPrincipal() {
		return this.mobile;
	}

	@Override
	public Object getCredentials() {
		return this.yzm;
	}

}
